//
//  WifiTransferor.h
//  smart_transferor
//
//  Created by  on 11-11-2.
//  Copyright (c) 2011年 tencent. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "transferor.h"
#import "Task.h"
#import "Reachability.h"
@interface WifiTransferor : NSObject<Transferor>
{
    @public
    NSMutableArray *m_pSendTasks;
    NSMutableArray *m_pRecvTasks;
    id<TransferorCallback> mCallback;
    CFSocketRef mUdpServerSock;
    CFSocketRef mTcpServerSock;
    int mSendId;
    int mRecvId;
    NSString *m_pPrefixPath;
    Reachability *m_pWifiReach;
}
-(id)init;
-(int)send:(FileMetaInfo *)file;
-(int)startListen;
-(void)setCallback:(id<TransferorCallback>)callback;
-(void)actionForRecv:(int)recvId accept:(bool)isAccept;
-(void)dealloc;
@end
